package com.ejbs;

import java.rmi.RemoteException;
import java.util.List;

import javax.ejb.EJBException;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;

import com.bean.BPaisPK;
import com.negocio.NDepartamento;

public class ESDepartamentoBean implements SessionBean {
	
	private static final long serialVersionUID = 1L;
	private NDepartamento ndepartamento;
	
	public ESDepartamentoBean() {ndepartamento = new NDepartamento();}
	public void ejbCreate() {}
	public void ejbActivate() throws EJBException, RemoteException {}
	public void ejbPassivate() throws EJBException, RemoteException {}
	public void ejbRemove() throws EJBException, RemoteException {}	
	public void setSessionContext(SessionContext arg0) throws EJBException,RemoteException {}
    
    
    public List ListXPais(BPaisPK pk) {
        return ndepartamento.ListXPais(pk);
    }
    public List listar() {
        return ndepartamento.listar();
    }

}
